package com.jl.card;

import com.jl.card.provider.jl2g.STKUIControl;

public interface ISTK {

	/**
	 * power on,send terminal profile command
	 */
	void on();

	/**
	 * power off,clear some state
	 */
	void off();

	/**
	 * select the menu or item
	 * 
	 * @param index
	 */
	void select(int index);

	/**
	 * select the item base on the text
	 * 
	 * @param text
	 */
	void selectByText(String text);

	/**
	 * send confirm command
	 */
	void ok();

	/**
	 * send back command
	 */
	void back();

	/**
	 * input data
	 * 
	 * @param data
	 */
	void input(String data);

	/**
	 * show the interface, used to the console
	 * 
	 * @return
	 */
	String show();

	/**
	 * send envelop command
	 */
	void envelop(String data);

	STKUIControl getUI();

}
